package org.dromara.study.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("employee_skill")
@AllArgsConstructor
public class EmployeeSkill {
    private static final long serialVersionUID = 1L;

    public EmployeeSkill(Long employeeId, Long skillId){
        this.employeeId = employeeId;
        this.skillId = skillId;
    }
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 员工ID
     */
    @TableField(value = "employee_id")
    private Long employeeId;

    /**
     * 技能ID
     */
    @TableField(value = "skill_id")
    private Long skillId;
}
